<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心首页 - {dede:global.cfg_webname/}</title>
<link href="../../img/css.css" rel="stylesheet" type="text/css" />
</head>
 
<body>
<!--Head-->
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_feedback.php");
	  DedeXHTTP = null;
}
function Check_head_Login(){
	  var taget_obj = document.getElementById('_Check_head_Login');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_head.php");
	  DedeXHTTP = null;
}
function CheckLogin_index(){
	  var taget_obj = document.getElementById('_login_index');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_index.php");
	  DedeXHTTP = null;
}
</script>
<?php
   pasterTempletDiy("default/head_index.htm");
?>
<!--Head_end-->
<div id="wz">&nbsp;&nbsp;&nbsp;您当前所在的位置： <a href="<?php echo cfg_basehost; ?>"><?php echo $cfg_webname; ?>首页</a> » 会员中心首页</div>
<!--Main-->
<div id="page">
<?php include(DEDEMEMBER."/templets/left.htm"); ?>
<div id="uright">
  <div id="urtitle"><strong>会员中心首页</strong></div>
  <div id="urborder">
  <div id="urhi"><strong><?php echo $cfg_ml->M_LoginID; ?></strong> 您好，欢迎您登录会员中心</div>
  <!--
    <div id="urmessage" class="mar_t"><div>点击完善<a href="/users/manage-edit.php">个人资料</a>后，即可获得50元抵用券。</div></div>
    -->
    <div id="urtext" class="mar_t">
     <strong>会员卡号：</strong><?php echo $cfg_ml->M_ID; ?><br />
     <strong>手机号码：</strong><?php echo $cfg_ml->M_LoginID; ?><br />
     <strong>电子邮箱：</strong><?php echo $row['email']; ?><br />
	 <strong>账户余额：</strong><span style="font-size:16px; color:#FF6600; font-weight:bold;"><?php echo $row['money']; ?></span> 元
     
        <!--
     <div class="urtextdiv" style="margin-left:80px;">
    
     <a href="/users/emailCheckAction.php" class="urtextcurr">点击发送激活邮件»</a>您的邮箱还未激活，请点击激活邮箱。
    
     </div>
      -->
     
     </div>
	 
	     <hr />
     
   <h3 id="urtable">我的抵用券  <font style="font-size:12px; color:#FF6600">(注：抵用券需管理员审核通过后，才可使用)</font></h3>
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr id="urtabletr">
    <td width="12%" height="28" class="urtabletdl">抵用券编号</td>
    <td width="20%">获取线路</td>
    <td width="15%">获取日期</td>
    <td width="20%" align="center">过期日期</td>
    <td width="9%" align="center">金额</td>
    <td width="12%" align="center">审核状态</td>
	 <td width="12%" align="center">使用状态</td>
    
      <?php if(empty($dyqs))
  {
  ?>
     </tr>
    <tr id="urtabletd">
    <td height="32" colspan="6" align="center"><span>您目前没有抵用券</span></td>
  </tr>  
  
<?php 
}

else
{
foreach ($dyqs as $dyqd)
{
?>
     <tr id="urtabletd">
    <td height="32" class="urtabletdl"><?php echo $dyqd[id];?></td>
    <td class="urtabletdr">

	<?php
	if($dyqd[fromid]=='0')
	{
	echo $dyqd[message];
	}
	else
	{
	
	$titlea=$dsql->getone("select title from #@__archives where id='$dyqd[fromid]'");
	
	?>
	<a class='blue2' href='/plus/view.php?aid=<?php echo $dyqd[fromid];?>' target='_blank'>
	<?php echo $titlea[title];
	}
	?></a>
	 
	 </td>
    <td><?php echo MyDate('Y-m-d h:i',$dyqd[sendtime]); ?></td>
    <td align="center"><?php  $xtime=$cfg_dyqgq*86400;
	$oktime=$dyqd[sendtime]+$xtime;
	echo MyDate('Y-m-d h:i',$oktime);
	?></td>
    <td align="center"><strong>¥<?php echo $dyqd[subject];?></strong></td>
    <td align="center"><span><?php 
    if($dyqd[hasview]=='0')
    {
    echo '待审核';
    }
    else
    {
      echo '<b>已审核</b>';
    }
    ?></span></td>
	
	 <td align="center"><span><?php 
    if($dyqd[isadmin]=='0')
    {
    echo '<b>未使用</b>';
    }
    else
    {
      echo '已使用';
    }
    ?></span></td>
  </tr>


<?php
}
}
?>

 
  
  </table>
<div id="urt"><a href="/order/xlsearch.php">查看更多订单»</a></div>


     <hr />
     
   <h3 id="urtable">我的线路订单</h3>
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr id="urtabletr">
    <td width="12%" height="28" class="urtabletdl">订单号</td>
    <td width="35%">标题</td>
    <td width="15%">下单时间/出发日期</td>
    <td width="20%" align="center">在线付款</td>
    <td width="9%" align="center">价格</td>
    <td width="9%" align="center">订单状态</td>
    
      <?php if(empty($archives))
  {
  ?>
     </tr>
    <tr id="urtabletd">
    <td height="32" colspan="6" align="center"><span>目前没有订单</span></td>
  </tr>  
  
<?php 
}

else
{
foreach ($archives as $archive)
{
?>
     <tr id="urtabletd">
    <td height="32" class="urtabletdl"><?php echo $archive[buyid];?></td>
    <td class="urtabletdr"><a class='blue2' href='/plus/view.php?aid=<?php echo $archive[id];?>' target='_blank'><?php echo $archive[title];?></a></td>
    <td><?php echo MyDate('Y-m-d h:i',$archive[time]); ?><br /><b style="color: #FF6600"><?php echo $archive[zcc];?></b></td>
    <td align="center"><?php
   
    if($archive['pay']=='0' or $archive['pay']=='')
    {
    
    
    if(dingjin($archive[id])>'0')
    {
    $ddj='<a href="/users/alipay.php?aid='.$archive['aid'].'&dj='.dingjin($archive[id]).'">支付订金( '.dingjin($archive[id]).' 元)</a><br />';
    }
    else
    {
    $ddj='';
    }
    
    echo ' '.$ddj.' <a href="/users/alipay.php?aid='.$archive['aid'].'">全额支付</a> ';
    }
    else
    {
    echo '已支付';
    }
    ?></td>
    <td align="center"><strong>¥<?php echo $archive[jiage];?></strong></td>
    <td align="center"><span><?php 
    if($archive['ischeck']=='0')
    {
    echo '未处理';
    }
    else
    {
      echo '已处理';
    }
    ?></span></td>
  </tr>


<?php
}
}
?>

 
  
  </table>
<div id="urt"><a href="/order/xlsearch.php">查看更多订单»</a></div>





  <hr />
     
   <h3 id="urtable">我的酒店订单</h3>
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr id="urtabletr">
    <td width="12%" height="28" class="urtabletdl">订单号</td>
    <td width="35%">标题</td>
    <td width="15%">下单日期</td>
    <td width="20%" align="center">在线付款</td>
    <td width="9%" align="center">价格</td>
    <td width="9%" align="center">订单状态</td>
    
      <?php if(empty($archivesjd))
  {
  ?>
     </tr>
    <tr id="urtabletd">
    <td height="32" colspan="6" align="center"><span>目前没有订单</span></td>
  </tr>  
  
<?php 
}

else
{
foreach ($archivesjd as $archive)
{
?>
     <tr id="urtabletd">
    <td height="32" class="urtabletdl"><?php echo $archive[buyid];?></td>
    <td class="urtabletdr"><a class='blue2' href='/plus/view.php?aid=<?php echo $archive[id];?>' target='_blank'><?php echo $archive[title];?></a>(<?php echo $archive[cr];?>——<?php echo $archive[rt];?>)</td>
    <td><?php echo MyDate('Y-m-d h:i',$archive[time]); ?></td>
    <td align="center"><?php
    if($archive['pay']=='0' && $cfg_okpay=='Y')
    {
    
    
    if(dingjin($archive[id])>'0')
    {
    $ddj='<a href="/users/alipay.php?aid='.$archive['aid'].'&dj='.dingjin($archive[id]).'">支付订金( '.dingjin($archive[id]).' 元)</a><br />';
    }
    else
    {
    $ddj='';
    }
    
    echo ' '.$ddj.' <a href="/users/alipay.php?aid='.$archive['aid'].'">全额支付</a> ';
    }
    else
    {
    echo '已支付';
    }
    ?></td>
    <td align="center"><strong>¥<?php echo $archive[jiage];?></strong></td>
    <td align="center"><span><?php 
    if($archive['ischeck']=='0')
    {
    echo '未处理';
    }
    else
    {
      echo '已处理';
    }
    ?></span></td>
  </tr>


<?php
}
}
?>

 
  
  </table>
<div id="urt"><a href="/order/xlsearch.php?po=jd">查看更多订单»</a></div>







<!--
<h3 id="urtable">我的抵用券</h3>
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr id="urtabletr">
    <td width="12%" height="28" class="urtabletdl">序列号</td>
    <td width="15%">余额/面额</td>
    <td width="12%">状态</td>
    <td width="14%" align="center">获取时间</td>
    <td width="18%" align="center">到期时间</td>
    <td width="29%" >备注</td>
  </tr>
    <tr id="urtabletd">
    <td height="32" colspan="6" align="center"><span>目前没有抵用券记录</span></td>
  </tr>
    
</table>
<div id="urt"><a href="PaymentCoupons.php">查看更多抵用券»</a></div>
</div>
-->
</div>

</div>
<!--Main_end-->
<!--Footer-->
  <!--Explanation-->
<?php
   pasterTempletDiy("default/footer.htm");
?>
<!--Footer_end-->
 
</body>
</html>
